//package scau.cty.web.user;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import scau.cty.base.common.BaseController;
//import scau.cty.base.common.IBaseService;
//import scau.cty.base.util.PasswordHelper;
//import scau.cty.dictionary.Code;
//import scau.cty.entity.User;
//import scau.cty.service.IUserService;
//
//import java.util.LinkedHashMap;
//import java.util.Map;
//
///**
// * 用户登录 注册 等验证
// * Created by Sunlight on 2016/12/7.
// */
//
//
//@RestController
//@RequestMapping(value = "/user",produces = "application/json")
//public class UserController extends BaseController {
//
//
//    @Autowired
//    private IBaseService<User> userIBaseService;
//    @Autowired
//    private IUserService iUserService;
//    @PostMapping("/add")
//    public Map addUser(User user, Message message) {
//        Map map = new LinkedHashMap<>();
//        PasswordHelper.encryptPassword(user);
//        iUserService.add(user, message);
//        sendCode(map, Code.OPERATION_SUCCESS);
//        return map;
//    }
//
//
//}
